package com.gateon.hw.system.config;

import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.mqtt.support.MqttHeaders;
import org.springframework.messaging.handler.annotation.Header;

/**
 * @program: hw
 * @description: qiuheyi
 * @author: qhy
 * @create: 2020-08-25 15:46
 **/
@MessagingGateway(defaultRequestChannel = "mqttOutboundChannel")
public interface MqttGateway {
    void publishMqttMessageWithTopic(String data,@Header(MqttHeaders.TOPIC) String topic);
}
